package camid.services.nodemanager;

import camid.distribution.protocol.InvocationDescriptor;

public class ForwardingException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3339972496155525839L;
	
	private ObjectStatus status;
	private InvocationDescriptor descriptor;
	
	public ForwardingException(InvocationDescriptor descriptor, ObjectStatus status) {
		super("Object " + descriptor.getObjectId() + " moved");
		this.status = status;
		this.descriptor = descriptor;
	}

	

	public ObjectStatus getStatus() {
		return status;
	}

	
	public InvocationDescriptor getDescriptor()
	{
		return descriptor;
	}
	
	
	
}
